fontStyles
Type
function
Summary
Returns a list of styles available for a font and size.
Syntax
fontStyles (<fontName>, <fontSize>)
Description
Use the fontStyles function to determine which font styles can be displayed or printed.
If you specify a fontSize of zero, the styles returned are the ones that are scalable for the specified font. The font styles are returned in a return delimited list, such as the following one:
plain
bold
italic
bold-italic
Parameters
Name | Type | Description |
---|---|---|
fontName | The name of a font that is installed on the system. | |
fontSize | A point size that exists for the font. |
Examples
fontStyles ("Helvetica", 9)
fontStyles (thisFont, 0)
Related
property: textStyle, printTextStyle
control structure: function
function: fontSizes, fontNames
Compatibility and Support
Introduced
LiveCode 1.0
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile